package com.gxa.finance.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.math.BigDecimal;
import java.sql.Timestamp;

@Data
public class Flow {

  @TableId(type = IdType.AUTO)
  @ExcelIgnore
  private Integer id; //流水编号

  @Excel(name = "订单编号", width = 10,orderNum = "0")
  private String orderId; //订单编号

  @Excel(name = "订单类型", width = 10,orderNum = "1")
  private String orderType; //订单类型

  @Excel(name = "款项类型", width = 10,orderNum = "2")
  private String type; //款项类型

  @Excel(name = "金额", width = 10,orderNum = "3")
  private BigDecimal money; //金额

  @Excel(name = "支付时间", width = 10,exportFormat = "yyyy-MM-dd HH:mm:ss",orderNum = "4")
  private Timestamp payTime; //支付时间

  @Excel(name = "支付方式", width = 10,orderNum = "5")
  private String payType; //支付方式

  public Flow() {
  }

  public Flow(String orderId, String orderType, String type, BigDecimal money, Timestamp payTime, String payType) {
    this.orderId = orderId;
    this.orderType = orderType;
    this.type = type;
    this.money = money;
    this.payTime = payTime;
    this.payType = payType;
  }
}
